package cn.snowheart.observer.weather.custom;

import cn.snowheart.observer.weather.custom.display.CurrentConditionsDisplay;
import cn.snowheart.observer.weather.custom.display.ForecastDisplay;
import cn.snowheart.observer.weather.custom.display.StatisticsDisplay;
import cn.snowheart.observer.weather.custom.weather.WeatherData;

/**
 * @author liuwanxiang
 * @version 2019/06/24
 */
public class ObserverTests {

    public static void main(String[] args) {

        WeatherData weatherData = new WeatherData();

        ForecastDisplay forecastDisplay = new ForecastDisplay(weatherData);
        StatisticsDisplay statisticsDisplay = new StatisticsDisplay(weatherData);
        CurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(weatherData);

        weatherData.setData(10);

    }

}
